package com.example.demo.batis;

import com.example.demo.control.UserBean;
import com.example.demo.control.UserBean2;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
    int insertUser(UserBean userBean);
    List<UserBean> findAll();
    List<UserBean2> findAll2();
    List<UserBean> findAll3(UserBean userBean);
    List<UserBean> findAll4(UserBean name);
    List<UserBean> findAll5(@Param("name") String name);
}